<me:ChartExBase x:Class="WPFExcelReport.Chart.ChartEx0006"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
       xmlns:chart="clr-namespace:De.TorstenMandelkow.MetroChart;assembly=De.TorstenMandelkow.MetroChart" 
             xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                xmlns:me="clr-namespace:WPFExcelReport.Chart"
        Loaded="ChartEx_Loaded">
    <me:ChartExBase.Resources>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:StringToBrushConverter x:Key="StringToBrushConverter" />
    </me:ChartExBase.Resources>
    <Grid x:Name="maingrid"  >
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions> 
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <chart:RadialGaugeChart Grid.Row="0" Grid.Column="0"
                            Style="{StaticResource ChartStyleVariableSize}"
                            IsSleep="{Binding IsSleep}"                                                                                                 
                            ChartTitle="{Binding Path=ChartTitle}"
                            ChartSubTitle="{Binding Path=ChartSubTitle}"
                            Palette="{Binding Path=SelectedPalette.Value}"
                            FontSize="{Binding Path=SelectedFontSize}"
                            IsRowColumnSwitched="{Binding Path=IsRowColumnSwitched}"
                            ChartTitleVisibility="{Binding Path=IsTitleVisible, Converter={StaticResource bv}}"
                            ChartLegendVisibility="{Binding Path=IsLegendVisible, Converter={StaticResource bv}}"
                            ToolTipFormat="{Binding Path=ToolTipFormat}"
                            Foreground="{Binding Path=Foreground}" 
                            Background="{Binding Path=Background}"                 
                            SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}"
                            SelectedBrush="{Binding Path=SelectedBrush, Converter={StaticResource StringToBrushConverter}}" 
                            SeriesSource="{Binding Path=Series}">
            <chart:RadialGaugeChart.SeriesTemplate>
                <DataTemplate>
                    <chart:ChartSeries  SeriesTitle="{Binding Path=SeriesDisplayName}"  DisplayMember="Category"  ValueMember="Number"  ItemsSource="{Binding Path=Items}" />
                </DataTemplate>
            </chart:RadialGaugeChart.SeriesTemplate>
        </chart:RadialGaugeChart>
    </Grid>
</me:ChartExBase>
